package u17.model;

import java.util.Date;
/**
 * 玩家实体类
 * @author 杜延雷
 *
 */
@SuppressWarnings("serial")
public class User extends Base{
	private Integer yid; 				//玩家ID
    private String yaccountid;			//账户ID
    private String yphonenumber;		//手机号
    private String ypassword;			//密码
    private String yrealname;			//姓名
    private String ynikename;			//昵称
    private Date ycratedatetime;		//注册时间
    private Date ylastlogindatetime;	//最后修改时间

    /**
     * 空构造方法
     */
    public User(){
    }

    /**
     * 
     * @param yid
     * @param yaccountid
     * @param yphonenumber
     * @param ypassword
     * @param yrealname
     * @param ynikename
     * @param ycratedatetime
     * @param ylastlogindatetime
     */
    public User(Integer yid, String yaccountid, String yphonenumber,
			String ypassword, String yrealname, String ynikename,
			Date ycratedatetime, Date ylastlogindatetime) {
		super();
		this.yid = yid;
		this.yaccountid = yaccountid;
		this.yphonenumber = yphonenumber;
		this.ypassword = ypassword;
		this.yrealname = yrealname;
		this.ynikename = ynikename;
		this.ycratedatetime = ycratedatetime;
		this.ylastlogindatetime = ylastlogindatetime;
	}
    
    public Integer getYid() {
        return yid;
    }

    public void setYid(Integer yid) {
        this.yid = yid;
    }

    public String getYaccountid() {
        return yaccountid;
    }

    public void setYaccountid(String yaccountid) {
        this.yaccountid = yaccountid;
    }

    public String getYphonenumber() {
        return yphonenumber;
    }

    public void setYphonenumber(String yphonenumber) {
        this.yphonenumber = yphonenumber;
    }

    public String getYpassword() {
        return ypassword;
    }

    public void setYpassword(String ypassword) {
        this.ypassword = ypassword;
    }

    public String getYrealname() {
        return yrealname;
    }

    public void setYrealname(String yrealname) {
        this.yrealname = yrealname;
    }

    public String getYnikename() {
        return ynikename;
    }

    public void setYnikename(String ynikename) {
        this.ynikename = ynikename;
    }

    public Date getYcratedatetime() {
        return ycratedatetime;
    }

    public void setYcratedatetime(Date ycratedatetime) {
        this.ycratedatetime = ycratedatetime;
    }

    public Date getYlastlogindatetime() {
        return ylastlogindatetime;
    }

    public void setYlastlogindatetime(Date ylastlogindatetime) {
        this.ylastlogindatetime = ylastlogindatetime;
    }

	@Override
	public String toString() {
		return "TUser [yid=" + yid + ", yaccountid=" + yaccountid
				+ ", yphonenumber=" + yphonenumber + ", ypassword=" + ypassword
				+ ", yrealname=" + yrealname + ", ynikename=" + ynikename
				+ ", ycratedatetime=" + ycratedatetime
				+ ", ylastlogindatetime=" + ylastlogindatetime + "]";
	}
}